package com.CGFrame.struts.bean;

import java.util.ArrayList;
import java.util.Collection;
import java.util.List;

public class DataSourceBeanFactory {
	public static Object[] createBeanArray(){
		return DemoBean.getBeans();
	}
	
	public static Collection createBeanCollection(){
		DemoBean[] beans=DemoBean.getBeans();
		List<DemoBean> list=new ArrayList<DemoBean>(beans.length);
		for(int i=0;i<beans.length;i++){
			list.add(beans[i]);
		}
		return list;
	}
}
